package org.ii.api;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.xml.ws.*;

import org.ii.domain.company.BrregCompany;


/**
 * The hello world service interface exposed as soap and rest
 *
 * @ WebService is for soap
 * @ Path is for the rest top path
 */

@Path("/searchCompanyByNameService/{companyName}")
public interface SearchCompanyByNameService {
	/**
	 * Simple method that searches company name from brreg.no via open.dapper.net
	 *
	 * @return list of Company!!!
	 * @throws Exception 
	 * @ GET is for REST
	 * @ Path is for the REST service path
	 */
	@GET
	@Path("/")
	List<BrregCompany> searchCompanyByName(@PathParam("companyName") final String companyName) throws Exception;
}
